package com.wjw.bms.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.wjw.bms.dao.HzUserinfoDao;
import com.wjw.bms.model.HzUserinfo;
import com.wjw.bms.service.HzUserinfoService;

@Service
public class HzUserinfoServiceImpl implements HzUserinfoService {

	@Autowired
	private HzUserinfoDao hzUserinfoDao;
	
	/**
	 * 新增用户
	* @Title: insertHzUserinfo 
	* @Description: TODO 
	* @param hzUserInfo
	* @return 
	* @see com.wjw.bms.service.HzUserinfoService#insertHzUserinfo(com.wjw.bms.model.HzUserinfo)
	 */
	public int insertHzUserinfo(HzUserinfo hzUserInfo) {
		int insertCount = hzUserinfoDao.insertHzUserinfo(hzUserInfo);
		return insertCount;
	}
	
	/**
	 * 查询用户
	* @Title: getUserInfo 
	* @Description: TODO 
	* @return 
	* @see com.wjw.bms.service.HzUserinfoService#getUserInfo()
	 */
	public List<HzUserinfo> getUserInfo() {
		List<HzUserinfo> userinfoList = hzUserinfoDao.getUserInfo();
		return userinfoList;
	}
	
	/**
	 * 修改用户信息
	* @Title: updateHzUserinfo 
	* @Description: TODO 
	* @param hzUserInfo 
	* @see com.wjw.bms.service.HzUserinfoService#updateHzUserinfo(com.wjw.bms.model.HzUserinfo)
	 */
	public void updateHzUserinfo(HzUserinfo hzUserInfo) {
		hzUserinfoDao.updateHzUserinfo(hzUserInfo);
	}
	
}
